// api/config.js
const ENV = 'dev';        // dev | test | prod

const originUrl = 'https://www.yaohubao.com.cn'
const token = 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMzYwMTAxMDIwMiIsImxvZ2luX3VzZXJfa2V5IjoiM2YzM2QwYzMtMTJhNC00NDIxLWJmNDMtOGU0OTE2ZTdmZDQ3In0.MLhjrRWDtLUy0W3IJcLB2k4KkA1ysCfXb3OEOueoLXvoRh3z5U4dlHQNg0IOYdn4qY1o9iMSEwuOyVHpQi558A'

const baseURL = {
  dev:  `${originUrl}/prod-api`,
  test: 'https://pre.xxx.com/api',
  prod: 'https://xxx.com/api'
};

export default {
  baseURL: baseURL[ENV],
  timeout: 10000,
  originUrl,
  token
};